<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SAColorToolButton::PrivateData类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_color_tool_button_1_1_private_data.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="class_s_a_color_tool_button_1_1_private_data-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SAColorToolButton::PrivateData类 参考</div></div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa01b0bff79e60fea80d6c2ceab9f13ef" id="r_aa01b0bff79e60fea80d6c2ceab9f13ef"><td class="memItemLeft" align="right" valign="top"><a id="aa01b0bff79e60fea80d6c2ceab9f13ef" name="aa01b0bff79e60fea80d6c2ceab9f13ef"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PrivateData</b> (<a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a> *p)</td></tr>
<tr class="separator:aa01b0bff79e60fea80d6c2ceab9f13ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafa1266e560725031d55e51892398ac1" id="r_aafa1266e560725031d55e51892398ac1"><td class="memItemLeft" align="right" valign="top"><a id="aafa1266e560725031d55e51892398ac1" name="aafa1266e560725031d55e51892398ac1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>calcSizeOfToolButtonIconOnly</b> (const QStyleOptionToolButton &amp;opt, QRect &amp;iconRect, QRect &amp;textRect, QRect &amp;colorRect)</td></tr>
<tr class="separator:aafa1266e560725031d55e51892398ac1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6640ef0586acb97e6277b43f81033443" id="r_a6640ef0586acb97e6277b43f81033443"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6640ef0586acb97e6277b43f81033443">calcSizeOfToolButtonTextOnly</a> (const QStyleOptionToolButton &amp;opt, QRect &amp;iconRect, QRect &amp;textRect, QRect &amp;colorRect)</td></tr>
<tr class="memdesc:a6640ef0586acb97e6277b43f81033443"><td class="mdescLeft">&#160;</td><td class="mdescRight">纯文本情况，左边有5像素显示颜色  <br /></td></tr>
<tr class="separator:a6640ef0586acb97e6277b43f81033443"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed2e2ca43aa564af4acc9e39a7b646bc" id="r_aed2e2ca43aa564af4acc9e39a7b646bc"><td class="memItemLeft" align="right" valign="top"><a id="aed2e2ca43aa564af4acc9e39a7b646bc" name="aed2e2ca43aa564af4acc9e39a7b646bc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>calcSizeOfToolButtonTextBesideIcon</b> (const QStyleOptionToolButton &amp;opt, QRect &amp;iconRect, QRect &amp;textRect, QRect &amp;colorRect)</td></tr>
<tr class="separator:aed2e2ca43aa564af4acc9e39a7b646bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79f1fbe0d513d6c553b8f9002d7fdf01" id="r_a79f1fbe0d513d6c553b8f9002d7fdf01"><td class="memItemLeft" align="right" valign="top"><a id="a79f1fbe0d513d6c553b8f9002d7fdf01" name="a79f1fbe0d513d6c553b8f9002d7fdf01"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>calcSizeOfToolButtonTextUnderIcon</b> (const QStyleOptionToolButton &amp;opt, QRect &amp;iconRect, QRect &amp;textRect, QRect &amp;colorRect)</td></tr>
<tr class="separator:a79f1fbe0d513d6c553b8f9002d7fdf01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03ccf3d1690ba58b62b79aaad4fdf458" id="r_a03ccf3d1690ba58b62b79aaad4fdf458"><td class="memItemLeft" align="right" valign="top"><a id="a03ccf3d1690ba58b62b79aaad4fdf458" name="a03ccf3d1690ba58b62b79aaad4fdf458"></a>
QPixmap&#160;</td><td class="memItemRight" valign="bottom"><b>createIconPixmap</b> (const QStyleOptionToolButton &amp;opt, const QRect &amp;iconRect)</td></tr>
<tr class="separator:a03ccf3d1690ba58b62b79aaad4fdf458"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2228bfdcd824f9739c622aa5d6b86c07" id="r_a2228bfdcd824f9739c622aa5d6b86c07"><td class="memItemLeft" align="right" valign="top">QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2228bfdcd824f9739c622aa5d6b86c07">getButtonRect</a> (const QStyleOptionToolButton &amp;opt)</td></tr>
<tr class="memdesc:a2228bfdcd824f9739c622aa5d6b86c07"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取按钮的矩形区域  <br /></td></tr>
<tr class="separator:a2228bfdcd824f9739c622aa5d6b86c07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafd35d582a5988309332f5b4835097b9" id="r_aafd35d582a5988309332f5b4835097b9"><td class="memItemLeft" align="right" valign="top">QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aafd35d582a5988309332f5b4835097b9">getIndicatorRect</a> (const QStyleOptionToolButton &amp;opt)</td></tr>
<tr class="memdesc:aafd35d582a5988309332f5b4835097b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取ToolButtonMenu的区域  <br /></td></tr>
<tr class="separator:aafd35d582a5988309332f5b4835097b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a6083958c45b67906456c532dc3bab4" id="r_a2a6083958c45b67906456c532dc3bab4"><td class="memItemLeft" align="right" valign="top">QStyle::State&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2a6083958c45b67906456c532dc3bab4">getButtonStyleState</a> (const QStyleOptionToolButton &amp;opt)</td></tr>
<tr class="memdesc:a2a6083958c45b67906456c532dc3bab4"><td class="mdescLeft">&#160;</td><td class="mdescRight">基于Qt qcommonStyle源码，对QStyleOptionToolButton的style修正  <br /></td></tr>
<tr class="separator:a2a6083958c45b67906456c532dc3bab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32ed8cea2e9c97c34bee34265fe872f5" id="r_a32ed8cea2e9c97c34bee34265fe872f5"><td class="memItemLeft" align="right" valign="top">QStyle::State&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a32ed8cea2e9c97c34bee34265fe872f5">getButtonMenuStyleState</a> (const QStyleOptionToolButton &amp;opt)</td></tr>
<tr class="memdesc:a32ed8cea2e9c97c34bee34265fe872f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">基于Qt qcommonStyle源码，对QStyleOptionToolButton的style修正  <br /></td></tr>
<tr class="separator:a32ed8cea2e9c97c34bee34265fe872f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa32e3933244ee1bc549c05239f7fe6e9" id="r_aa32e3933244ee1bc549c05239f7fe6e9"><td class="memItemLeft" align="right" valign="top"><a id="aa32e3933244ee1bc549c05239f7fe6e9" name="aa32e3933244ee1bc549c05239f7fe6e9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>removeMenu</b> ()</td></tr>
<tr class="separator:aa32e3933244ee1bc549c05239f7fe6e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a1233bc78e0790e231c63a821ce3d2866" id="r_a1233bc78e0790e231c63a821ce3d2866"><td class="memItemLeft" align="right" valign="top"><a id="a1233bc78e0790e231c63a821ce3d2866" name="a1233bc78e0790e231c63a821ce3d2866"></a>
QColor&#160;</td><td class="memItemRight" valign="bottom"><b>mColor</b> { Qt::white }</td></tr>
<tr class="separator:a1233bc78e0790e231c63a821ce3d2866"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b734f8aaa67ec5fd97d5946ced21dcc" id="r_a5b734f8aaa67ec5fd97d5946ced21dcc"><td class="memItemLeft" align="right" valign="top"><a id="a5b734f8aaa67ec5fd97d5946ced21dcc" name="a5b734f8aaa67ec5fd97d5946ced21dcc"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mSpacing</b> { 2 }</td></tr>
<tr class="memdesc:a5b734f8aaa67ec5fd97d5946ced21dcc"><td class="mdescLeft">&#160;</td><td class="mdescRight">间隔 <br /></td></tr>
<tr class="separator:a5b734f8aaa67ec5fd97d5946ced21dcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeae957296baf50e49e227961babb785" id="r_aaeae957296baf50e49e227961babb785"><td class="memItemLeft" align="right" valign="top"><a id="aaeae957296baf50e49e227961babb785" name="aaeae957296baf50e49e227961babb785"></a>
QMargins&#160;</td><td class="memItemRight" valign="bottom"><b>mMargins</b> { 3, 3, 3, 3 }</td></tr>
<tr class="memdesc:aaeae957296baf50e49e227961babb785"><td class="mdescLeft">&#160;</td><td class="mdescRight">box <br /></td></tr>
<tr class="separator:aaeae957296baf50e49e227961babb785"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afab5c94f4a92adfa0547b33beb1fb2a9" id="r_afab5c94f4a92adfa0547b33beb1fb2a9"><td class="memItemLeft" align="right" valign="top"><a id="afab5c94f4a92adfa0547b33beb1fb2a9" name="afab5c94f4a92adfa0547b33beb1fb2a9"></a>
<a class="el" href="class_s_a_color_tool_button.html#a9e1b41f328cac2030a198fc4509fa344">ColorToolButtonStyle</a>&#160;</td><td class="memItemRight" valign="bottom"><b>mColorButtonStyle</b> { <a class="el" href="class_s_a_color_tool_button.html#a9e1b41f328cac2030a198fc4509fa344a9e5a66a1fa852c94de022dc3ffab525a">WithColorMenu</a> }</td></tr>
<tr class="memdesc:afab5c94f4a92adfa0547b33beb1fb2a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">样式 <br /></td></tr>
<tr class="separator:afab5c94f4a92adfa0547b33beb1fb2a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a84e02cd5d71742cc9e24c8709894ecc0" id="r_a84e02cd5d71742cc9e24c8709894ecc0"><td class="memItemLeft" align="right" valign="top"><a id="a84e02cd5d71742cc9e24c8709894ecc0" name="a84e02cd5d71742cc9e24c8709894ecc0"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>s_indicatorArrorWidth</b> = 8</td></tr>
<tr class="memdesc:a84e02cd5d71742cc9e24c8709894ecc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">菜单宽度 <br /></td></tr>
<tr class="separator:a84e02cd5d71742cc9e24c8709894ecc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">成员函数说明</h2>
<a id="a6640ef0586acb97e6277b43f81033443" name="a6640ef0586acb97e6277b43f81033443"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6640ef0586acb97e6277b43f81033443">&#9670;&#160;</a></span>calcSizeOfToolButtonTextOnly()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAColorToolButton::PrivateData::calcSizeOfToolButtonTextOnly </td>
          <td>(</td>
          <td class="paramtype">const QStyleOptionToolButton &amp;</td>          <td class="paramname"><span class="paramname"><em>opt</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>iconRect</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>textRect</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>colorRect</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>纯文本情况，左边有5像素显示颜色 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">opt</td><td></td></tr>
    <tr><td class="paramname">iconRect</td><td></td></tr>
    <tr><td class="paramname">textRect</td><td></td></tr>
    <tr><td class="paramname">colorRect</td><td>左边有5像素显示颜色 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a32ed8cea2e9c97c34bee34265fe872f5" name="a32ed8cea2e9c97c34bee34265fe872f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32ed8cea2e9c97c34bee34265fe872f5">&#9670;&#160;</a></span>getButtonMenuStyleState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStyle::State SAColorToolButton::PrivateData::getButtonMenuStyleState </td>
          <td>(</td>
          <td class="paramtype">const QStyleOptionToolButton &amp;</td>          <td class="paramname"><span class="paramname"><em>opt</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>基于Qt qcommonStyle源码，对QStyleOptionToolButton的style修正 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">opt</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a2228bfdcd824f9739c622aa5d6b86c07" name="a2228bfdcd824f9739c622aa5d6b86c07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2228bfdcd824f9739c622aa5d6b86c07">&#9670;&#160;</a></span>getButtonRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRect SAColorToolButton::PrivateData::getButtonRect </td>
          <td>(</td>
          <td class="paramtype">const QStyleOptionToolButton &amp;</td>          <td class="paramname"><span class="paramname"><em>opt</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取按钮的矩形区域 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">opt</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a2a6083958c45b67906456c532dc3bab4" name="a2a6083958c45b67906456c532dc3bab4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a6083958c45b67906456c532dc3bab4">&#9670;&#160;</a></span>getButtonStyleState()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QStyle::State SAColorToolButton::PrivateData::getButtonStyleState </td>
          <td>(</td>
          <td class="paramtype">const QStyleOptionToolButton &amp;</td>          <td class="paramname"><span class="paramname"><em>opt</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>基于Qt qcommonStyle源码，对QStyleOptionToolButton的style修正 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">opt</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aafd35d582a5988309332f5b4835097b9" name="aafd35d582a5988309332f5b4835097b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafd35d582a5988309332f5b4835097b9">&#9670;&#160;</a></span>getIndicatorRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QRect SAColorToolButton::PrivateData::getIndicatorRect </td>
          <td>(</td>
          <td class="paramtype">const QStyleOptionToolButton &amp;</td>          <td class="paramname"><span class="paramname"><em>opt</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取ToolButtonMenu的区域 </p>
<dl class="section note"><dt>注解</dt><dd>注意，如果不是QStyleOptionToolButton::MenuButtonPopup|QStyleOptionToolButton::HasMenu下调用此函数，返回的是QRect() </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">opt</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/colorWidgets/<b>SAColorToolButton.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_color_tool_button.html">SAColorToolButton</a></li><li class="navelem"><a class="el" href="class_s_a_color_tool_button_1_1_private_data.html">PrivateData</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
